using BankInvest.InstrumentEditor.Domain;
using BankInvest.InstrumentEditor.Domain.Entities;
using FluentNHibernate.Mapping;

namespace BankInvest.InstrumentEditor.NHibernate.Maps
{
    public class InstrumentTypeMap :ClassMap<InstrumentType>
    {
        public InstrumentTypeMap()
        {
            Id(_ => _.Id).GeneratedBy.Assigned().Access.CamelCaseField(Prefix.Underscore);
            Map(_ => _.Name).Access.CamelCaseField(Prefix.Underscore);
            ReadOnly();
        }
    }
}